package com.cxytiandi.sharding.service;

import com.cxytiandi.sharding.po.OrderItem;
import com.cxytiandi.sharding.repository.OrderItemRepository;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class OrderItemServiceImpl implements OrderItemService {
    @Autowired
    private OrderItemRepository itemRepository;

    @Override
    public Long insertOrderItem(OrderItem item) {
        return itemRepository.addItemInfo(item);
    }
}
